package com.coolw.toolkit.hutool;

import org.dromara.hutool.core.lang.Validator;
import org.junit.Test;

/**
 * 字段校验 Validator工具类测试
 *
 * @author coolw
 * @date 2022/6/29 8:49
 */
public class ValidatorTest {

    @Test
    public void test() {
        boolean emailBool = Validator.isEmail("172572525@qq.com");
        System.out.println("是否为邮箱:" + emailBool);

        boolean mobileBool = Validator.isMobile("15000994422");
        System.out.println("是否为手机号:" + mobileBool);

        boolean carVinBool = Validator.isCarVin("LK7NWD103K1502626");
        System.out.println("是否为vin码:" + carVinBool);
    }
}
